package launchramp

class Kid {
    String firstName
    String lastName
    String email
    String address
    String zip
    int age
    String phone
    String guardianFirstName
    String guardianLastName
    String guardianEmail
    String guardianPhone
    boolean verified
    String about
    byte[] image
    
    static hasMany = {sessions: Session}
    
  /*  static constraints = {
        firstName matches: /^[a-z ,.'-]+$/
        lastName mathches: /^[a-z ,.'-]+$/
        email email: true
        address matches: /\d{1,5}\s\w.\s(\b\w*\b\s){1,2}\w*\$/
        zip matches: /\d{5}(-\d{4})&/
        age min: 8
        age max: 17
        phone matches: /\A([(]\d{3}[)][ ]|\d{3}([-]|[ ]))\d{3}([-]|[ ])\d{4}([x][\d][\d]|)\z/
        guardianFirstName matches: /^[a-z ,.'-]+$/
        guardianLastName matches: /^[a-z ,.'-]+$/
        guardianEmail email: true
        guardianPhone matches: /\A([(]\d{3}[)][ ]|\d{3}([-]|[ ]))\d{3}([-]|[ ])\d{4}([x][\d][\d]|)\z/
        about size: 0..2000
        image size: 0..5000000
    }*/
}
